{extend name="./public/base"/}
{block name="alt"}用户管理{/block}
{block name="alter"}用户详情{/block}
{block name="title"}BangBang用户详情{/block}
{block name="main"}
<div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                	<h3>基本信息</h3>
                                	{volist name="userdetails" id="us"}
                                	<div class="row">
                                	<div class="col-sm-2 text-center">
                                		<br>
                                		<br>
                                		<img src="__STATIC__/upload/{$us.upic}" alt="" width="100px" height="100px" style="border-radius: 50%;">
                                	</div>
                                        <div class="col-sm-4">
                                           <table class="table">
  <caption></caption>
    <tr>
      <td>用户名</td>
      <td>{$us.uname}</td>
    </tr>
    <tr>
      <td>性别</td>
      <td>{if condition="$us.gender==0"}男
      {else}女
  {/if}</td>
    </tr>
    <tr>
      <td>出生日期</td>
      <td>{$us.birthdate}</td>
    </tr>
    <tr>
      <td>邮箱</td>
      <td>{$us.email}</td>
    </tr>
</table>
</div>
</div>
                                          
                                       
                                        {/volist}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
<div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                	<h3>收藏列表</h3>
                                	
                                	<table class="table table-striped  mt-3">
                                            <thead>
                                                <tr>
                                                    <th scope="col" class="text-center">序号</th>
                                                    <th scope="col" class="text-center">视频名称</th>
                                                     <th scope="col" class="text-center">视频海报</th>
                                                    <th scope="col" class="text-center">视频类型</th>
                                                    <th scope="col" class="text-center">收藏日期</th>
													
                                                </tr>
                                            </thead>
                                            <tbody>
                                            	{volist name="collects" id="collect" key="k"}
                                            	<tr>
                                                    <td><p class="text-center">{$k+($page-1)*10}</p></td>
                                            	<td><p class="text-center">{$collect.videoname}</p></td>
                                            	 <td class="text-center">
                                                        <img src="__STATIC__/videopic/{$collect.pic}" width="100px" height="70px" >
                                                    </td>
                                            	<td><p class="text-center">{$collect.typename}</p></td>
                                            	<td><p class="text-center">{$collect.collentdate}</p></td>
                                            	</tr>
                                            	{/volist}
                                            </tbody>
                                      
                                        </table>
                                         {$collects->render()}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


<div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                    <h3>课程表</h3>
                                    
                                    <table class="table table-striped  mt-3">
                                            <thead>
                                                <tr>
                                                     <th scope="col" class="text-center">序号</th>
                                                    <th scope="col" class="text-center">视频名称</th>
                                                     <th scope="col" class="text-center">视频海报</th>
                                                    <th scope="col" class="text-center">视频类型</th>
                                                    <th scope="col" class="text-center">收藏日期</th>
                                                    
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {volist name="tables" id="ta" key="k"}
                                                <tr>
                                                    <td><p class="text-center">{$k+($page-1)*10}</p></td>
                                                <td><p class="text-center">{$ta.videoname}</p></td>
                                                 <td class="text-center">
                                                        <img src="__STATIC__/videopic/{$ta.pic}" width="100px" height="70px" >
                                                    </td>
                                                <td><p class="text-center">{$ta.typename}</p></td>
                                                <td><p class="text-center">{$ta.vttime}</p></td>
                                                </tr>
                                                {/volist}
                                            </tbody>
                                      
                                        </table>
                                         {$tables->render()}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


{/block}